package com.dym.staff.controller;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpSession;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.dym.staff.services.SectionServices;

@Controller
@RequestMapping(value="/section")
public class SectionController {

	@Autowired
	SectionServices ss;
	@RequestMapping(value="/findAll")
	public String findAll(HttpSession session){
		List<Map<String, Object>> list=ss.findAll();
		session.setAttribute("section", list);
		List<Map<String, Object>> competent=ss.competentAll();
		session.setAttribute("competent", competent);
		return "index";
	}
	
	
	
	
}
